package entity.domain.value;

import entity.domain.topic.Type;

public class ContinuousValue extends Value<Double> {

    public ContinuousValue(){
        this.setValueType(Type.Continuous);
    }

    public ContinuousValue(double value, String description){
        this.setValueType(Type.Continuous);
        this.setValue(value);
        this.setDescription(description);
    }

    public ContinuousValue(double value){
        this.setValueType(Type.Continuous);
        this.setValue(value);
    }

    public boolean equals(ContinuousValue continuousValue){
        return this.getValue() == continuousValue.getValue();
    }
}
